load c:\manoj\projects\ace\pcp_amie pcp_amie fday_pcp_amie;
load c:\manoj\projects\ace\OMNI_ELEC ace_all ace_gsm_bz; % JUST ACE IEF
L = ace_all(:,1) <= fday_pcp_amie(end);
pcp_amie_at_ace = interp1(fday_pcp_amie,pcp_amie,ace_all(L,1));
time_ax = ace_all(L,1);
ace_data = ace_all(L,2);
L = isnan(ace_data);
ace_data_new = interp1(time_ax(~L),ace_data(~L),time_ax);
%save c:\manoj\projects\ace\ace_amie_joint_analysis;
[Cxx,F] = mscohere(pcp_amie_at_ace,ace_data_new,hanning(1024*100),1,1024*100,1/(5*60));


 